package cn.tedu.submarine;

import javax.swing.*;

public class Plane extends SeaObject{
    public Plane(int x, int y){
        super(67,19,x,y,4);
    }

    @Override
    public void move() {
        x-= speed;
    }

    @Override
    public ImageIcon getImage() {
        return Images.plane;
    }

    @Override
    public boolean isOutOfBounds() {
        return this.x<-68;
    }
    public Missile shootMissile(){
        return new Missile(this.x+35,this.y+11);
    }
}
